import request from '@/utils/request'

// 查询话题关注管理列表
export function listTopicfollow(query) {
  return request({
    url: '/topicfollow/topicfollow/list',
    method: 'get',
    params: query
  })
}

// 查询话题关注管理详细
export function getTopicfollow(id) {
  return request({
    url: '/topicfollow/topicfollow/' + id,
    method: 'get'
  })
}

// 新增话题关注管理
export function addTopicfollow(data) {
  return request({
    url: '/topicfollow/topicfollow',
    method: 'post',
    data: data
  })
}

// 修改话题关注管理
export function updateTopicfollow(data) {
  return request({
    url: '/topicfollow/topicfollow',
    method: 'put',
    data: data
  })
}

// 删除话题关注管理
export function delTopicfollow(id) {
  return request({
    url: '/topicfollow/topicfollow/' + id,
    method: 'delete'
  })
}

export function listPatient(query) {
  return request({
    url: '/doctor/patient/list',
    method: 'get',
    params: query
  })
}

// 查询话题列表
export function listTopic(query) {
  return request({
    url: '/knowledge/topic/list',
    method: 'get',
    params: query
  })
}
